package socketVersion.Backend.Cars;

import java.io.Serializable;

public class Car implements Serializable{
	
	private static final long serialVersionUID = -3511645373721328980L;
	private int price;
	private int numCars;
	private String location;
	
	public Car(String location,int price,int noCars){
		this.location = location;
		this.price = price;
		numCars = noCars;
	}
	
	public String getLocation(){
		return location;
	}
	
	public int  getPrice(){
		return price;
	}

	public int getNumCars(){
		return numCars;
	}
	
	public boolean equals(Car c){
		if(c.getLocation().equals(location)){
			return true;
		}
		else{
			return false;
		}
	}
}

